<?php
	header("Content-type: application/octet_stream"); 
		 
	$map = $_REQUEST;
	$contents = "";
	foreach ( $map as $key => $val) {
		$map[$key] = str_replace("\\", '', $val);
		$contents.= $map[$key].','.$val;
		$contents.= "\n";
	}
	Header("Content-Disposition: attachment; filename=export.xls");
	print $contents; 
?>
